package com.ruoyi.training.mapper;

import java.util.List;
import com.ruoyi.training.domain.TrainingIpPool;

/**
 * IP池Mapper接口
 * 
 * @author rocc
 * @date 2025-06-12
 */
public interface TrainingIpPoolMapper 
{
    /**
     * 查询IP池
     * 
     * @param id IP池主键
     * @return IP池
     */
    public TrainingIpPool selectTrainingIpPoolById(Long id);

    /**
     * 查询IP池列表
     * 
     * @param trainingIpPool IP池
     * @return IP池集合
     */
    public List<TrainingIpPool> selectTrainingIpPoolList(TrainingIpPool trainingIpPool);

    /**
     * 新增IP池
     * 
     * @param trainingIpPool IP池
     * @return 结果
     */
    public int insertTrainingIpPool(TrainingIpPool trainingIpPool);

    /**
     * 修改IP池
     * 
     * @param trainingIpPool IP池
     * @return 结果
     */
    public int updateTrainingIpPool(TrainingIpPool trainingIpPool);

    /**
     * 删除IP池
     * 
     * @param id IP池主键
     * @return 结果
     */
    public int deleteTrainingIpPoolById(Long id);

    /**
     * 批量删除IP池
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteTrainingIpPoolByIds(Long[] ids);

    /**
     * 批量插入
     * @param ips
     * @return
     */
    public int batchInsert(List<String> ips);

    /**
     * 查询IP池数量
     * @param trainingIpPool
     * @return
     */
    int countTrainingIpPool(TrainingIpPool trainingIpPool);

    void deleteAll();
}
